package com.fnfn.sdk.api.service;

import java.util.List;

import com.fnfn.sdk.api.entity.User;

public interface UserService {

    void add(User user) throws Exception;

    User selectByUsername(String username) throws Exception;

    void remove(Integer userId) throws Exception;

    void modify(User user) throws Exception;

    List<User> selectByCondition(User user) throws Exception;

    User selectByUserId(Integer userId) throws Exception;

    void modifyPassword(User user) throws Exception;

    List<User> selectByDepartmentId(Integer cDepartmentId) throws Exception;

    List<User> selectByRoleId(Integer cRoleId) throws Exception;

    void saveAvatar(Integer userId, String fileName) throws Exception;

    User selectDetailByUserId(Integer cUserId) throws Exception;

    User selectDetailByUsername(String cUsername) throws Exception;

    List<User> selectAll(User user) throws Exception;

    int modifyStatus(User user) throws Exception;
}
